package com.gezi.admin.module.code.tmpl.model;

import com.gezi.admin.config.validate.constraint.dict.ValidDictEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import lombok.extern.slf4j.Slf4j;

import jakarta.validation.constraints.*;

/**
 * @Author 格子软件
 * @createDate 2024/2/10 09:00
 * @contact 公众号：格子软件 微信：13716343106 邮箱：1424529270@qq.com
 */
@Slf4j
@Data
public class CodeTmplAddParamModel {

    @NotBlank(message = "文本普通不能为空")
    @ApiModelProperty(value = "文本普通")
    private String textPutong;

    @NotBlank(message = "文本长文不能为空")
    @ApiModelProperty(value = "文本长文")
    private String textLong;

    @NotBlank(message = "文本JSON不能为空")
    @ApiModelProperty(value = "文本JSON")
    private String textJson;

    @NotBlank(message = "文本复制不能为空")
    @ApiModelProperty(value = "文本复制")
    private String textCopy;

    @NotBlank(message = "文件单个不能为空")
    @ApiModelProperty(value = "文件单个")
    private String fileUrl;

    @NotBlank(message = "文件多个不能为空")
    @ApiModelProperty(value = "文件多个")
    private String fileUrls;

    @NotNull(message = "状态开关不能为空")
    @ApiModelProperty(value = "状态开关")
    private Boolean stateSwitch;

    @NotBlank(message = "选择单选不能为空")
    @ValidDictEnum(type = "dictUserState", message = "选择单选不符合规定")
    @ApiModelProperty(value = "选择单选")
    private String selectOne;

    @NotBlank(message = "选择多选不能为空")
    @ValidDictEnum(type = "dictUserState", message = "选择多选不符合规定",isList = true)
    @ApiModelProperty(value = "选择多选")
    private String selectMore;

    @NotBlank(message = "富文本不能为空")
    @ApiModelProperty(value = "富文本")
    private String fuwenben;
}